package beanstao.util.type.base;

import java.sql.Time;
import java.sql.Timestamp;

import beanstao.util.exception.technical.util.reflect.FailToCastObjectException;
import beanstao.util.type.Castor;

public class Timestamp2SqlTime extends Castor<Timestamp, Time>
{

	@Override
	public Time cast(Timestamp src, Class<?> toType, String... args) throws FailToCastObjectException
	{
		return new Time(src.getTime());
	}

}
